<ion-view view-title="促销统计" class="promotionaddup">
	 <ion-content>
		<div class="list list-borderless" style="margin-bottom: 0px;">
			 <li class="item item-input">
			 	<span class="input-label">活动名称：</span>
			 	{{data.name}}
			 </li>
			  <li class="item item-input">
			 	<span class="input-label">活动销售金额：</span>
			 	120万
			 </li>
			  <li class="item item-input">
			 	<span class="input-label">关注人数：</span>
			 	{{data.total_attention_num}}
			 </li>
			  <li class="item item-input">
			 	<span class="input-label">申请人数：</span>
			 	{{data.total_apply_num}}
			 </li>
			 <li class="item item-input">
			 	<span class="input-label">批准人数：</span>
			 	{{data.total_agree_num}}
			 </li>
			 <li class="item item-input">
			 	<span class="input-label">支付人数：</span>
			 	{{data.total_pay_num}}
			 </li>
			 <li class="item item-input">
			 	<span class="input-label">答卷人数：</span>
			 	{{data.total_answer_num}}{{slideIndex}}
			 </li>
			 <li class="item margin-top-10-my">
			 	<span class="bian_red padding-5 left-zhang" ng-class="{'assertive-bg light':isTable,'assertive':isTable==false}" on-tap="changeTable()">切换列表</span>
			 	<span class="bian_red right-zhang padding-5 assertive" ng-class="{'assertive-bg light':isImage,'assertive':isImage==false}" on-tap="changeImage()">切换统计图</span>
			 </li>
		</div>

		<!--表格太大，水平滚动-->
		<ion-scroll direction="x" ng-show="isTable">
	           	<div class="padding-5" style="width:200%;">
				   <table border="1" cellpadding="0" cellspacing="0" width="100%">
				   	 <tr>
				   	 	<td>地域</td>
				   	 	<td>关注人数</td>
				   	 	<td>申请人数</td>
				   	 	<td>批准数量</td>
				   	 	<td>支付人数</td>
				   	 	<td>答卷人数</td>
				   	 </tr>
				   	  <tr ng-repeat="attention_num in data.attention_num" class="font-gray-my">
				   	 	<td>{{attention_num.region_name}}</td>
				   	 	<td>{{attention_num.number}}</td>
				   	 	<td>{{data.apply_num[0].number}}</td>
				   	 	<td>{{data.agree_num[$index].number}}</td>
				   	 	<td>{{data.pay_num[$index].number}}</td>
				   	 	<td>{{data.answer_num[$index].number}}</td>
				   	 </tr>
				   </table>
				   </div>
	      </ion-scroll>

             	<div class="item-image" ng-show="isImage">
             		 <img  src="img/myworld_sale_statistics.png" />
             	</div>

 </ion-content>
</ion-view>
